
.only_gpt {
    background: #f3f5fa;
    height: calc(100vh - 30px);

    .ant-float-btn {
        top: 35px;
        right: 18px;
    }

    .agent_wrap {
        position: relative;

        .plusIntelige {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);

        }
    }

    .drawer_center {
        text-align: center;

        .chat_list {

            .ant-list-item {
                text-align: left;
                transition: all 0.2s;
                border-radius: 15px;
                padding: 10px;

                &:hover {
                    background: #eeeeee;

                    .ant-list-item-action {
                        opacity: 1;
                    }
                }

                .ant-list-item-action {
                    transition: all 0.1s;
                    opacity: 0;
                }
            }

            .ant_list_active {
                background: #dddde9 !important;

                h4 {
                    color: #2d65f7 !important;
                }
            }
        }

        .avatar {
            display: inline-block;
            position: relative;

            .ant-btn {
                position: absolute;
                top: -10px;
                right: -10px;
                background: #333;
                border-radius: 50%;
                width: 20px;
                height: 20px;

                .anticon {
                    font-size: 14px;
                    color: #fff;
                }
            }
        }

        .chat_opt {
            column-gap: 10px;
        }

    }

    main {
        overflow: hidden;
        height: 100%;
        width: calc(100% - 20px);
        max-width: 800px;
        margin: 0 auto;
        padding-top: 35px;
        padding-bottom: 15px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        position: relative;

        .back_bottom {
            position: absolute;
            right: 20px;
            bottom: 150px;
        }

        .back_bottom.show {
            display: block;
        }

        .back_bottom.hidden {
            display: none;
        }

        h1 {
            text-align: center;
        }

        .chat_detail {
            flex: 1;
            overflow-y: hidden;
            display: flex;
            flex-direction: column;



            .chat_title {
                width: 150px;
                column-gap: 8px;
                cursor: pointer;
                margin: 0 auto;


                &:hover {
                    color: #1677ff;

                    .anticon {
                        transform: rotate(180deg);
                    }
                }

                .anticon {
                    transition: all 0.2s;
                }
            }

            ul {
                position: relative;
                overflow-y: auto;
                height: 100%;

                li {
                    margin: 10px 0px;
                    column-gap: 15px;
                    width: 100%;

                    .revocation {
                        margin: 0 auto;
                        font-size: 14px;
                    }

                    .ant-avatar {
                        width: 40px;
                        height: 40px;
                    }

                    .content {
                        box-sizing: border-box;
                        position: relative;
                        padding: 10px;
                        border-radius: 6px;
                        margin-bottom: 10px;

                        .tools {
                            z-index: 1;
                            position: absolute;
                            bottom: 0;
                            opacity: 0.8;
                            gap: 9px;
                            font-size: 12px;
                            background: #fff;
                            padding: 5px 10px;
                            border-radius: 8px;
                            transform: translateY(calc(100% + 8px));
                            white-space: nowrap;
                            color: #000;

                            .tool_item {
                                cursor: pointer;

                                &:hover {
                                    color: #409eff;
                                    transform: scale(1.1);
                                }
                            }

                            .edit_wrap {
                                position: absolute;
                                align-items: flex-end;
                                top: 0;
                                left: 0;
                            }
                        }

                    }

                    .content_user {
                        background: #2d65f7;
                        color: #fff;

                        .tools {
                            left: 0;

                            .anticon {
                                color: #000;
                            }
                        }
                    }

                    .content_other {
                        background: #fff;

                        .tools {
                            right: 0;
                        }
                    }
                }
            }
        }


        .ant-empty {
            margin-top: 50%;
            transform: translateY(-50%);
        }

        .preview_file {
            margin-top: 15px;

            .preview_item {
                position: relative;
                width: 50px;
                height: 50px;
                .clear_icon{
                    position: absolute;
                    top: 0;
                    right: 0;
                    transform: translate(50%,-50%);
                    cursor: pointer;
                    color: #1677ff;
                    &:hover{
                        color: red;
                    }
                }
                .img_wrap {
                    img {
                        width: 50px;
                        height: 50px;
                    }
                }
            }
        }

        .input_wrap {
            margin-top: 10px;
            width: 100%;
            position: relative;



            textarea {
                padding-right: 15px;
                padding-bottom: 45px;
                padding-top: 35px;
            }

            .icon_list {
                column-gap: 15px;
                top: 10px;
                left: 10px;
                position: absolute;

                z-index: 2;

                .icon_item {
                    cursor: pointer;
                    transition: all 0.3;
                    font-size: 13px;

                    .anticon {
                        padding-right: 5px;
                    }

                    &:hover {
                        color: #2d65f7;
                        transform: scale(1.1);
                    }
                }

            }

            .send_btn {
                position: absolute;
                bottom: 10px;
                right: 10px;
            }
        }
    }
}

.faceback_modal {
    font-size: 14px;

    // --active-bg: "https://bucket-chabaidao-1308160773.cos.ap-guangzhou.myqcloud.com/img/17210";
    .face_list {
        column-gap: 10px;

        .face_item {
            flex: 1;
            background: #f1f3fa;
            padding: 8px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;

            .logo {
                position: relative;

                img {
                    transition: all 0.3s;
                    width: 28px;
                    height: 28px;
                    display: block;
                    margin: 0 auto;
                }

                .img_2 {
                    opacity: 0;

                }

                &:hover {
                    .img_2 {
                        opacity: 1;
                    }
                }
            }
        }

    }

    .title {
        margin: 10px 0;
    }
}